﻿@model SecurityControllerModel.Index
<div class="my-main">
    <div class="ui-box  ui-box-alpha">
        <div class="ui-box-head">
            <div class="ui-box-head-border">
                <div class="ui-box-head-title">
                    安全中心</div>
                <span class="ui-box-head-text">基本信息</span> <a href="#" class="ui-box-head-more">去竞拍</a>
            </div>
        </div>
        <div class="ui-box-container">
            <div class="ui-box-content">
                <div class="ui-tiptext-container ui-tiptext-container-message">
                    <p class="ui-tiptext ui-tiptext-message">
                        <i class="ui-tiptext-icon iconfont" title="提示"></i> 固定电话格式为：国家代码-区号-电话号码 如：086-010-12345678
                        或者为：区号-电话号码-分机号（分机号可不填）如：010-12345678-123。
                    </p>
                </div>
            </div>
        </div>
        <div class="ui-box-container-noborder">
            <div class="security-list">
                <div class="security-list-item">
                    <div class="row-fluid">
                        <div class="span1 ">
                            <div class="sl-hvalign" style="height: 60px;">
                                <div class="sl-hvalign-cnt">
                                    <div class="sl-hvalign-cnt-inner">
                                        <i class="@(Model.User.Password.IsPassword() ? "security-list-item-icon-alert" : "security-list-item-icon-success")">
                                        </i>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="span2 security-list-item-name">
                            登录密码
                        </div>
                        <div class="span7 security-list-item-content">
                            @if (Model.User.Password.IsPassword())
                            {
                                <p class="muted">
                                    互联网账号存在被盗风险，建议您定期更改密码以保护账户安全。</p>
                            }
                            else
                            {
                                <p class="">
                                    互联网账号存在被盗风险，建议您定期更改密码以保护账户安全。</p>
                            }
                        </div>
                        <div class="span2 security-list-item-actions">
                            <a href="/security/changepassword"><i class="icon-pencil"></i>修 改</a>
                        </div>
                    </div>
                </div>
                <div class="security-list-item">
                    <div class="row-fluid">
                        <div class="span1 ">
                            <div class="sl-hvalign" style="height: 60px;">
                                <div class="sl-hvalign-cnt">
                                    <div class="sl-hvalign-cnt-inner">
                                        <i class="@(Model.User.Email.IsNullOrEmpty() ? "security-list-item-icon-alert" : "security-list-item-icon-success")">
                                        </i>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="span2 security-list-item-name">
                            绑定邮箱
                        </div>
                        <div class="span7 security-list-item-content">
                            @if (Model.User.Email.IsNullOrEmpty())
                            {
                                <p class="muted">
                                    绑定后，可用于快速找回登录密码及支付密码，接收账户余额变动提醒。</p>
                            }
                            else
                            {
                                <p>
                                    您的绑定邮箱：<strong>@Model.User.Email</strong></p>
                            }
                        </div>
                        <div class="span2 security-list-item-actions">
                            <a href="#" onclick="$.fancybox.open({ href: '/security/emailbinding', type: 'ajax',modal:true,padding:0});">
                                绑定邮箱</a>
                        </div>
                    </div>
                </div>
                <div class="security-list-item security-list-item-last">
                    <div class="row-fluid">
                        <div class="span1">
                            <div class="sl-hvalign" style="height: 60px;">
                                <div class="sl-hvalign-cnt">
                                    <div class="sl-hvalign-cnt-inner">
                                        <i class="@(Model.User.Mobile.IsNullOrEmpty() ? "security-list-item-icon-alert" : "security-list-item-icon-success")">
                                        </i>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="span2 security-list-item-name">
                            绑定手机
                        </div>
                        <div class="span7 security-list-item-content">
                            @if (!Model.User.Mobile.IsNullOrEmpty())
                            {
                                <p>
                                    您的绑定手机：<strong>@Model.User.Mobile</strong></p>
                            }
                            else
                            {
                                <p>
                                    绑定后，可用于快速找回登录密码及支付密码，接收账户余额变动提醒。</p>
                            }
                        </div>
                        <div class="span2 security-list-item-actions">
                            @if (!Model.User.Mobile.IsNullOrEmpty())
                            {
                                <a href="#" onclick="$.fancybox.open({ href: '/security/mobilebinding', type: 'ajax',modal:true,padding:0});">
                                    更新绑定手机</a>

                            }
                            else
                            {
                                <a href="#" onclick="$.fancybox.open({ href: '/security/mobilebinding', type: 'ajax',modal:true,padding:0});">
                                    绑定手机</a>
                            }
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@section js{
}
